import request from '@/utils/request'

// 查询入党积极分子申请列表
export function listActivist(query) {
  return request({
    url: '/system/activist/list',
    method: 'get',
    params: query
  })
}

// 查询入党积极分子申请详细
export function getActivist(activistId) {
  return request({
    url: '/system/activist/' + activistId,
    method: 'get'
  })
}

// 新增入党积极分子申请
export function addActivist(data) {
  return request({
    url: '/system/activist',
    method: 'post',
    data: data
  })
}

// 修改入党积极分子申请
export function updateActivist(data) {
  return request({
    url: '/system/activist',
    method: 'put',
    data: data
  })
}

// 删除入党积极分子申请
export function delActivist(activistId) {
  return request({
    url: '/system/activist/' + activistId,
    method: 'delete'
  })
}

// 审核入党积极分子申请
export function auditActivist(data) {
  return request({
    url: '/system/activist/audit',
    method: 'put',
    data: data
  })
}